package com.youzikj.wx.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.youzikj.wx.core.dao.SubDao;
import com.youzikj.wx.core.pojo.Sub;

/**
 * @author Administrator
 *
 */
@Service
public class SubServiceImpl {

	@Autowired
	private SubDao dao;
	
	/**
	 * 添加领取者
	 */
	public void addSub(Sub sub){
		dao.add(sub);
	}
	
	public Sub queryByOpenid(String openid){
		return dao.get(openid);
	}
	
	public void editPosterUrl(Sub pojo){
		dao.editPosterUrl(pojo);
	}
}


